# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pyvmidbg
pkgver=218.5c71d6d
pkgrel=8
pkgdesc='LibVMI-based GDB server, implemented in Python.'
arch=('any')
url='https://github.com/Wenzel/pyvmidbg'
license=('GPL3')
depends=('python' 'python-docopt' 'python-lxml' 'python-libvmi')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/Wenzel/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  python setup.py build
}

package() {
  cd $pkgname

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

